从业机构同步微信支付分订单信息
前置条件:服务订单状态为“进行中”且订单状态说明需为"商户完结(MCH_COMPLETE)"
请求参数 | 类型 | 描述 |
---|---|---|
out_order_no | string | 商户服务订单号 |
json | object | 声明请求的JSON 数据结构 |
service_id | string | 服务ID |
sub_mchid | string | 子商户号 |
channel_id | string | 渠道商商户号 |
type | string | 场景类型 |
detail | object | 内容信息详情 |
paid_time | string | 收款成功时间 |
php
$instance->v3->payscore->acquiringbank->serviceorder->_out_order_no_->sync->postAsync([
'out_order_no' => '1234323JKHDFE1243252',
'json' => [
'service_id' => '2002000000000558128851361561536',
'sub_mchid' => '1900000109',
'channel_id' => '1230000109',
'type' => 'Order_Paid',
'detail' => [
'paid_time' => '20091225091210',
],
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r($response->getStatusCode() === 204);
})
->wait();
php
$instance->chain('v3/payscore/acquiringbank/serviceorder/{out_order_no}/sync')->postAsync([
'out_order_no' => '1234323JKHDFE1243252',
'json' => [
'service_id' => '2002000000000558128851361561536',
'sub_mchid' => '1900000109',
'channel_id' => '1230000109',
'type' => 'Order_Paid',
'detail' => [
'paid_time' => '20091225091210',
],
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r($response->getStatusCode() === 204);
})
->wait();
php
$instance['v3/payscore/acquiringbank/serviceorder/{out_order_no}/sync']->postAsync([
'out_order_no' => '1234323JKHDFE1243252',
'json' => [
'service_id' => '2002000000000558128851361561536',
'sub_mchid' => '1900000109',
'channel_id' => '1230000109',
'type' => 'Order_Paid',
'detail' => [
'paid_time' => '20091225091210',
],
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r($response->getStatusCode() === 204);
})
->wait();
php
$response = $instance->v3->payscore->acquiringbank->serviceorder->_out_order_no_->sync->post([
'out_order_no' => '1234323JKHDFE1243252',
'json' => [
'service_id' => '2002000000000558128851361561536',
'sub_mchid' => '1900000109',
'channel_id' => '1230000109',
'type' => 'Order_Paid',
'detail' => [
'paid_time' => '20091225091210',
],
],
]);
print_r($response->getStatusCode() === 204);
php
$response = $instance->chain('v3/payscore/acquiringbank/serviceorder/{out_order_no}/sync')->post([
'out_order_no' => '1234323JKHDFE1243252',
'json' => [
'service_id' => '2002000000000558128851361561536',
'sub_mchid' => '1900000109',
'channel_id' => '1230000109',
'type' => 'Order_Paid',
'detail' => [
'paid_time' => '20091225091210',
],
],
]);
print_r($response->getStatusCode() === 204);
php
$response = $instance['v3/payscore/acquiringbank/serviceorder/{out_order_no}/sync']->post([
'out_order_no' => '1234323JKHDFE1243252',
'json' => [
'service_id' => '2002000000000558128851361561536',
'sub_mchid' => '1900000109',
'channel_id' => '1230000109',
'type' => 'Order_Paid',
'detail' => [
'paid_time' => '20091225091210',
],
],
]);
print_r($response->getStatusCode() === 204);
返回字典 | 类型 | 描述 |
---|---|---|
空字符串(无返回内容) |
参阅 官方文档